﻿using Bot.Domain.Entities;
using Comm100.Framework.Domain.Specifications;
using System;
using System.Collections.Generic;
using System.Text;

namespace Bot.Domain.Specifications
{
    public class CategoryFilterSpecification : BaseSpecification<Category>
    {
        public CategoryFilterSpecification(Guid botId)
            : base(i => i.BotId == botId)
        {

        }     
        public CategoryFilterSpecification(Guid botId ,string name)
            : base(i => i.BotId == botId && i.Name == name && i.IsDeleted == false)
        {

        }
        public CategoryFilterSpecification(Guid id, Guid botId, string name)
            : base(i => i.BotId == botId && i.Name == name && i.Id != id && i.IsDeleted == false)
        {

        }
        public CategoryFilterSpecification(Guid botId, Guid parentId)
            : base(i => i.BotId == botId && i.ParentId == parentId)
        {

        }
    }
}
